package zheezes.protocol.impl.gbw.afn8d;

import zheezes.protocol.impl.gbw.DataUnit;
import zheezes.protocol.impl.gbw.format.DataForm34;

public abstract class Afn8DDownF1DataUnit extends DataUnit {
	public static final Class select(byte[] buf, int offset) {
		DataForm34 type = new DataForm34();
		type.setBytes(buf, offset);
		switch (type.getSymbol()) {
		case 0:
			return Afn8DDownF2S0DataUnit.class;
		case 1:
			return Afn8DDownF2S1DataUnit.class;
		default:
			return null;
		}
	}
}
